#include "Types.h"

using namespace irr;

class CCompass : public gui::IGUIElement
{
public:
   //=== constructor ===//
   CCompass( core::rect<s32> rect, gui::IGUIEnvironment* env, gui::IGUIElement* parent );

   //! set body of compass texture
   void SetCompassBodyTexture( video::ITexture* texture );
   //! set needle of compass texture
   void SetCompassNeedleTexture( video::ITexture* texture );

   //! set compass heading
   void SetCompassHeading( f32 deg );

   //! render the compass
   virtual void draw();

   void SetupQuadMesh( scene::SMeshBuffer &mesh, f32 f32Width );
private:
   scene::SMeshBuffer BodyMesh;
   scene::SMeshBuffer NeedleMesh;
   core::matrix4 Matrix;
}; 

